<template>
  <router-link :to="{name:'detail',query:{id:data.id,type:1}}" class="article-item">
    <div class="point"></div>
    <div class="title">{{data.title}}</div>
    <div class="time">{{data.crt_time}}</div>
  </router-link>
</template>

<script>
export default {
  name: "ArticleItem",
  props: {
    data: Object
  }
}
</script>

<style lang="scss" scoped>
.article-item{
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 10px 0;
  cursor: pointer;
  .point{
    width: 3px;
    height: 3px;
    border-radius: 100%;
    background: $orange;
  }
  .title{
    font-size: 17px;
    margin:0 10px;
    width: calc(100% - 133px);
    overflow: hidden;
    text-overflow:ellipsis;
    white-space: nowrap;
  }
  .time{
    width:110px;
    color:$darkGray;
    font-size: 16px;
  }
}
</style>
